package com.hhly.sns.entity.user;

import com.hhly.sns.vo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * @author wangyulong-910
 * @date 2017年6月20日下午3:22:35
 */
public class UserFavorite extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")//不能为空
    private Long id;

    @ApiModelProperty(value = "用户ID")//不能为空
    private String userId;

    @ApiModelProperty(value = "收藏类型(1资讯，2视频)")//不能为空
    private Short favoriteType;

    @ApiModelProperty(value = "业务ID")//不能为空
    private Long bizId;

    @ApiModelProperty(value = "客户端类型：1.PC，2.android，3.iOS，4.H5，5.APP(包含2、3)，6.移动端（包含2、3、4）")//不能为空
    private Short deviceType;

    @ApiModelProperty(value = "备注")//可以为空
    private String remarks;

    @ApiModelProperty(value = "创建时间")//可以为空
    private Date createTime;

    @ApiModelProperty(value = "修改时间")//可以为空
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Short getFavoriteType() {
        return favoriteType;
    }

    public void setFavoriteType(Short favoriteType) {
        this.favoriteType = favoriteType;
    }

    public Long getBizId() {
        return bizId;
    }

    public void setBizId(Long bizId) {
        this.bizId = bizId;
    }

    public Short getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Short deviceType) {
        this.deviceType = deviceType;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", favoriteType=").append(favoriteType);
        sb.append(", bizId=").append(bizId);
        sb.append(", deviceType=").append(deviceType);
        sb.append(", remarks=").append(remarks);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        sb.append(", from super class ");
        sb.append(super.toString());
        return sb.toString();
    }
}